﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="format-detection" content="telephone=no" />
    <title>智慧团建系统-通知公告列表</title>
    <link rel="icon" href="favicon.ico" mce_href="favicon.ico" type="image/x-icon">
	<link rel="shortcut icon" href="favicon.ico" mce_href="favicon.ico" type="image/x-icon">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache" content="no-cache">
	<meta http-equiv="kiben" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
	<!-- css -->
    <link rel="stylesheet" type="text/css"  href="asset/css/comm.css" />
    <link type="text/css" rel="stylesheet" charset="utf-8" href="asset/bootstrap/css/bootstrap.css">
    <link type="text/css" rel="stylesheet" charset="utf-8" href="asset/css/cys.css">
    <style type="text/css">
		@charset "UTF-8";

		.ng-cloak,
		.x-ng-cloak,
		.ng-hide {
			display: none !important;
		}

		ng:form {
			display: block;
		}

		.ng-animate-block-transitions {
			transition: 0s all !important;
			-webkit-transition: 0s all !important;
		}

		.ng-hide-add-active,
		.ng-hide-remove {
			display: block !important;
		}
		
		.pull-right {
		    float: right !important;
		    display: inline-flex;
		}
		.searBOX .inpBox input.inptext, .searBOX .inpBox .selsty {
    		width: auto;
    	}
    	
    	.newTABLE {
    		margin-left: 0px;
    	}
	</style>
	
</head>	
<body class="qm_bgcolor">
	<div id="header_wrap"></div>
    	
    <div class="inner_line index-main">
	    <div class="mainBOX ">
	        <div id="content">
	        	<div style="margin: 10px 30px;font-size: 14px;font-weight: 600;color: #565656;">
	        		>>通知公告列表
	        	</div>
     			<div class="tabUI chartU" style="display:block;" ng-controller="TzggCtrl as ctrl" ng-init="ctrl.query()">
	            	<table class="newTABLE">
	              		<tr ng-repeat="item in ctrl.entities.content" ng-click="changeCurrents(item, $event)">
			              	<td width="70%">{{item.bt}}</td>
			              	<td class="fc_gery">{{item.xgr}} {{item.xgsj}}</td>
		              	</tr>
	            	</table>
	            	<div class="panel-body">
						共有记录：
						<span>{{ctrl.entities.totalElements}}</span>
						条
						<div class="pull-right" ng-include="':root/components/page.html'"></div>
					</div>
          		</div>
			</div>
	   	</div>
	</div>
	<div id="footer_wrap"></div>
   
	<!-- js -->
	<script src="asset/outdatedbrowser/outdatedbrowser.js"></script>
    <script type="text/javascript" data-main="asset/main.js" src="asset/js/require.min.js"></script>
    <script type="text/javascript" src="asset/jquery/jquery.js"></script>
    <script type="text/javascript" src="asset/js/comm.js"></script>
    <script type="text/javascript" src="asset/js/include.js"></script>
    <script>
		function TzggCtrl($injector,$scope, CtrlUtil, $element, $http,$state) {
			var ctrl = this;
			//CtrlUtil.build(this, listUrl)
			this.query = function () {
				ctrl.entities && (ctrl.entities.content = {})
				var p = CtrlUtil.getQueryParams(ctrl)
				p.fbzt = 1;
				$http.post(':root/tzgggl/list', p).success(function (r) {
					ctrl.entities = r;
				})
			}
			this.preview = function (item) {
				//$state.go('app.newsview',{id:item.id});
				var url = 'newsview.html?id='+item.id;
				//location.href = url;
				window.open(url);
			}
			
			$scope.changeCurrents = function(current, $event) {
				ctrl.preview(current);
            };
		}
	</script>
</body>
</html>